package com.igeek.demo;

/**
 * 封装属性:
 *      1.将属性的访问修饰符，改为私有的
 *      2.提供两个方法，能够使外界获取到属性，后者是修改属性值
 *          getXxx() setXxx() 快捷键：Alt + Insert
 */
public class Demo03 {

    private String username;

    private String password;

    public String getUsername(){
        return username;
    }

    public void setUsername(String username){
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
